module.exports = function (req,res,next){
    if(req.user.isAdmin !== 1) return res.status(403).send({message:'Access denied'});
    next();
}